{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "firefox/base/base-protocol.html" %}

{# "noindex" pages should not have the canonical or hreflang tags: bug 1442331 #}
{% block canonical_urls %}<meta name="robots" content="noindex,follow">{% endblock %}

{% block site_css %}
  {% if ftl_file_is_active('navigation_refresh') and ftl_file_is_active('footer-refresh') %}
    {{ css_bundle('m24-root') }}
    {{ css_bundle('m24-navigation-and-footer') }}
  {% else %}
    {{ css_bundle('legacy-navigation-and-footer') }}
  {% endif %}
  {{ css_bundle('protocol-firefox') }}
{% endblock %}

{% block page_css %}
  {{ css_bundle('protocol-emphasis-box') }}
  {{ css_bundle('protocol-callout') }}
  {{ css_bundle('nightly_whatsnew') }}
{% endblock %}

{% block page_title %}{{ ftl('nightly-whatsnew-youve-just-been', version=num_version) }}{% endblock %}
{% block page_title_prefix %}{% endblock %}
{% block page_title_suffix %}{% endblock %}
{% block page_desc %}{{ ftl('nightly-whatsnew-every-4-to-5-weeks') }}{% endblock %}
{% block page_image %}{{ static('protocol/img/logos/firefox/browser/nightly/og.png') }}{% endblock %}
{% block page_favicon %}{{ static('img/favicons/firefox/browser/nightly/favicon.ico') }}{% endblock %}
{% block page_favicon_large %}{{ static('img/favicons/firefox/browser/nightly/favicon-196x196.png') }}{% endblock %}
{% block page_ios_icon %}{{ static('img/favicons/firefox/browser/nightly/apple-touch-icon.png') }}{% endblock %}
{% block page_og_url %}{{ firefox_url('desktop', 'all', 'nightly') }}{% endblock %}

{% block body_id %}nightly-whatsnew{% endblock %}

{% block site_header %}{% endblock %}

{% block content %}
<main class="content-wrapper mzp-t-firefox mzp-t-dark">
  <header class="c-page-header">
    <div class="mzp-l-content c-page-header-inner">
      <img src="{{ static('protocol/img/logos/firefox/browser/nightly/logo-word-hor-white.svg') }}" alt="{{ ftl('nightly-whatsnew-firefox-nightly') }}" width="216" height="40" class="c-page-header-logo-fx">
      <div class="mzp-c-notification-bar mzp-t-success">
        {% set message = ftl('nightly-whatsnew-your-firefox-nightly') if ftl_has_messages('nightly-whatsnew-your-firefox-nightly') else self.page_title() %}
        <p>{{ message }}</p>
      </div>
    </div>
  </header>

  <div class="mzp-l-content">
    <div class="mzp-c-emphasis-box">
      <h2 class="c-emphasis-box-title" data-testid="nightly-whatsnew-update-message">{{ self.page_title() }}</h2>
      {% if LANG == 'es-ES' and country_code == 'ES' %}
      <section class="mzp-c-callout  mzp-t-dark  mzp-t-content-xl mzp-l-content-xl">
          <div class="mzp-l-content">
              <h4 class="mzp-c-callout-title">¿Quieres ayudar en España?</h4>
              <div class="mzp-c-callout-desc">
                  <p>El éxito de Mozilla y de Firefox también depende de la existencia e implicación de comunidades locales en todos los aspectos del proyecto.</p>
                  <p>¿Quieres implicarte en uno de los proyectos open source más importantes en el mundo y ayudarnos a crear una web más abierta para todos?</p>
              </div>

              <p><a href="https://chat.mozilla.org/#/room/#spain:mozilla.org" class="mzp-c-button mzp-t-dark" type="button" data-cta-text="Join Spain channel">¡Entra en el chat y hablemos!</a></p>
          </div>
      </section>
      <br>
      {% endif %}
      <p>{{ ftl('nightly-whatsnew-every-4-to-5-weeks') }}</p>

      <p>{{ ftl('nightly-whatsnew-this-is-a-good') }}</p>

      <p>{{ ftl('nightly-whatsnew-if-you-want-to-v4', blog='href="https://blog.nightly.mozilla.org/"', twitter='href="https://twitter.com/FirefoxNightly"', mastodon='href="https://mastodon.social/@FirefoxNightly"', bluesky='href="https://bsky.app/profile/firefoxnightly.bsky.social"') }}</p>

      <p>
          {% set attrs = 'href="#" class="nightly-experiments-link"' %}
          {{ ftl('nightly-whatsnew-want-to-know-which-v3', attrs=attrs) }}
        </p>

      <p>{{ ftl('nightly-whatsnew-do-you-experience', bugzilla='https://bugzilla.mozilla.org') }}</p>

      <p>{{ ftl('nightly-whatsnew-go-community') }}</p>
    </div>
  </div>
</main>
{% endblock %}

{% block js %}
  {{ js_bundle('firefox_whatsnew_nightly') }}
{% endblock %}

{# Exclude stub attribution for in-product pages: issus 9620 #}
{% block stub_attribution %}{% endblock %}

{% block site_footer %}
{% with theme_class='mzp-t-ink' %}
{% include 'includes/protocol/footer/footer.html' %}
{% endwith %}
{% endblock %}
